<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }

      #container {
        width: 100vw;
        height: 100vh;
      }
    </style>
    <script src="https://map.qq.com/api/gljs?v=1.exp&key=AHZBZ-QIIOQ-ISR5F-GTULT-AXPYF-SUFGT"></script>
  </head>
  <body>
    <div id="container"></div>

    <script>
      var center = new TMap.LatLng(39.98412, 116.307484)
      //定义map变量，调用 TMap.Map() 构造函数创建地图
      var map = new TMap.Map(document.getElementById("container"), {
        center: center, //设置地图中心点坐标
        zoom: 17.2, //设置地图缩放级别
        pitch: 0, //设置俯仰角
        rotation: 45, //设置地图旋转角度
      })
    </script>
  </body>
</html>
